home *** CD-ROM | disk | FTP | other *** search
- /*
- Pointer.rx by Saint
- (line Script)
- V1.0
- */
-
- call addlib("rexxmathlib.library", 5, -30, 0)
-
- options results
- parse ARG Port x1 y1 x2 y2 b
- ADDRESS value Port
- Pi=3.1415926
- width=x2-x1
- height=y2-y1
- winkel=20
- l=sqrt(width**2 + height**2)
- l2=1.5*l /*Laenge der schraege*/
- /*winkel ausrechnen*/
- neunzig=trunc(rad(asin(height/l)),0)
- y=l2*sin(deg(neunzig-winkel)) /*sinus=y/l2*/
- x=l2*cos(deg(neunzig-winkel))
- if x1>x2 then x=-x
- kox1=x1+x
- koy1=y1+y
-
- winkel=-20
- y=l2*sin(deg(neunzig-winkel)) /*sinus=y/l2*/
- x=l2*cos(deg(neunzig-winkel))
- if x1>x2 then x=-x
-
- kox2=x1+x
- koy2=y1+y
- pp_StartPoly
- pp_AddPoly x1 y1
- pp_AddPoly kox1 koy1
- pp_AddPoly x2 y2
- pp_AddPoly kox2 koy2
- pp_AddPoly x1 y1
- pp_EndpolyF
- ==
- ==
- /* Effect Operators Scroll*/
- call addlib("rexxmathlib.library", 5, -30, 0)
- options results
-
- parse ARG Port Opt1 Opt2 Opt3 s0 t0 s1 t1 b
- /*Opt1 Fade 1=Ja 0=Nein*/
- /*Opt2 Modus ein=0 aus=1*/
- /*Opt3 Richtung Oben=0 Unten=1 rechts=2 links=3*/
- /*t0 Nr=0 Anima=1*/
- /*t1 Nr=0 Anima=1*/
- ADDRESS value Port
- pp_GetWidth
- w=result
- x=w/2
- pp_GetHeight
- h=result
- y=h/2
- pp_FindEmptyBrush
- Brush=result
- if Brush=-1 then DO
- pp_Warn "can't*find*empty|Brush."
- EXIT
- END
- pp_SetBrush Brush
- pp_GotoFrame S1
- pp_PickBrush 0 0 w h 1
- pp_SpareOnOff
- pp_Plot w/2 h/2
- Frames=S1-S0
- ticks=h/Frames
- pp_SpareOnOff
- Select
- When Opt3=0 then up()
- When Opt3=1 then down()
- When Opt3=2 then rechts()
- when Opt3=3 then links()
-
- END
-
-
- exit
-
- down:
- do i=1 to Frames-1
- pp_SpareonOff
- pp_PickBrush 0 0 w i*ticks 1
- pp_SpareOnOff
- pp_GotoFrame S0+i
- pp_Plot w/2 h-(i*ticks)/2
- end
- return 0
-
- up:
- do i=1 to Frames-1
- pp_SpareonOff
- pp_PickBrush 0 h-i*ticks w i*ticks 1
- pp_SpareOnOff
- pp_GotoFrame S0+i
- pp_Plot w/2 (i*ticks)/2
- end
- return 0
-
- links:
- do i=1 to Frames-1
- say i
- pp_SpareonOff
- pp_PickBrush w 0 w-ticks*i h 1
- pp_SpareOnOff
- pp_GotoFrame S0+i
- pp_Plot (i*ticks)/2 h/2
- end
- return 0
-
- rechts:
- do i=1 to Frames-1
- pp_SpareonOff
- pp_PickBrush 0 0 (ticks*i) h 1
- pp_SpareOnOff
- pp_GotoFrame S0+i
- pp_Plot w-(i*ticks/2) h/2
- end
- return 0
- ==
-
- Regards
- --
- Markus Castro <Markus@Amigafuture.de> (Y)
- ________ ____ _ __ (°-°)
- /_ __/ / ___ / __/__ _(_)__ / /_ Amiga Aktuell Autor ()-,-()--<{@
- / / / _ \/ -_)\ \/ _ `/ / _ \/ __/ (_)-(_)
- /_/ /_//_/\__/___/\_,_/_/_//_/\__/ AmigaFuture Autor
-